<template>
  <!--段位组件-->
  <div class="danBox">
    <svg class="danIcon" aria-hidden="true">
      <use
        :xlink:href="
          integral <= '10'
            ? '#icon-dengji'
            : integral <= '100'
            ? '#icon-baiyinqishi'
            : '#icon-dengji1'
        "
      ></use>
    </svg>
  </div>
</template>

<script>
export default {
  name: "Dan",
  props: ["integral"],
};
</script>

<style scoped>
.danIcon {
  width: 100%;
  height: 100%;
  fill: currentColor;
  overflow: hidden;
}
</style>
